package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 品牌表
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_brand")
@Schema(name = "TzBrand", description = "品牌表")
public class TzBrand implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "brand_id", type = IdType.AUTO)
    private Long brandId;

    @Schema(description = "品牌名称")
    @TableField("brand_name")
    private String brandName;

    @Schema(description = "图片路径")
    @TableField("brand_pic")
    private String brandPic;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "备注")
    @TableField("memo")
    private String memo;

    @Schema(description = "顺序")
    @TableField("seq")
    private Integer seq;

    @Schema(description = "默认是1，表示正常状态,0为下线状态")
    @TableField("status")
    private Integer status;

    @Schema(description = "简要描述")
    @TableField("brief")
    private String brief;

    @Schema(description = "内容")
    @TableField("content")
    private String content;

    @Schema(description = "记录时间")
    @TableField("rec_time")
    private LocalDateTime recTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "品牌首字母")
    @TableField("first_char")
    private String firstChar;
}
